DataMatrixBarcodeShape Angle
Gets or sets the rotation angle of the bar code, measured in radians counter clockwise.
public float Angle {get;Set} |
Return value
float | Angle value in radians |
Example
Copy
scanDocument = scanDeviceManager.CreateScanDocument(GetselectedDeviceUniqueName(), DistanceUnit.Millimeters, false);
if (scanDocument != null)
{
VectorImage vectorImage = scanDocument.CreateVectorImage("image1", DistanceUnit.Millimeters);
vectorImage.SetMarkSpeed(1000);
vectorImage.SetJumpSpeed(2000);
vectorImage.SetJumpDelay(100);
vectorImage.SetMarkDelay(100);
//Set Laser Delays
vectorImage.SetLaserOnDelay(10);
vectorImage.SetLaserOffDelay(10);
DataMatrixBarcodeShape dmBarcode = new DataMatrixBarcodeShape();
dmBarcode.Angle = 0;
dmBarcode.AutoExpand = true;
dmBarcode.DataMatrixFormat = DataMatrixFormat.Default;
dmBarcode.DataMatrixSize = DataMatrixSize.S14x14;
dmBarcode.FlipHorizontally = false;
dmBarcode.FlipVertically = false;
dmBarcode.Height = 10;
dmBarcode.InvertImage = false;
dmBarcode.Location = new Point3D(0, 0, 0);
dmBarcode.MarkingOrder = MarkingOrder.HatchBeforeOutline;
dmBarcode.QuietZone = false;
dmBarcode.Text = "SMAPI 4";
dmBarcode.HatchingDirection = BarcodeScanDirection.TopToBottom;
dmBarcode.HatchLineDirection = BarcodeScanDirection.LeftToRight;
dmBarcode.HatchPattern = BarcodeHatchPattern.CreateLineHatchPattern(0.5f, true, false);
vectorImage.AddBarcode(dmBarcode);
scanDocument.Scripts.Add(new ScanningScriptChunk("defaultScript", "ScanAll()"));
try
{
scanDocument.StartScanning();
}
catch
{
}
}